package com.mingqijia.gassafety.webserver.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName SaveSupplierRequest.java
 * @createTime 2022年06月08日
 */
@Data
@ApiModel(value = "新增编辑供应商")
public class SupplierRequest {

    @ApiModelProperty(value = "供应商id")
    private Long id;


    @ApiModelProperty(value = "供应商名称")
    @NotBlank(message = "供应商名称不能为空")
    @Size(min = 2,max = 30,message = "请输入2-30位汉字字母数字")
    private String supplierName;


    @ApiModelProperty(value = "简称")
    @NotBlank(message = "简称不能为空")
    @Size(min = 2,max = 30,message = "请输入2-30位汉字字母数字")
    private String forShort;

    @ApiModelProperty(value = "设备型号")
    @Size(min = 1,max = 500,message = "请输入1-500位汉字、字母、数字")
    private String equipmentModel;


    @ApiModelProperty(value = "供应商地址")
    @Size(min = 2,max = 200,message = "请输入2-100位汉字、字母、数字")
    private String supplierAddress;

    @ApiModelProperty(value = "说明")
    @Size(min = 1,max = 200,message = "请输入1-200位汉字、字母、数字")
    private String remark;

    @ApiModelProperty(value = "供应商代码")
    @NotNull(message = "供应商代码不能为空")
    @Size(min = 100,max = 999,message = "请输入3位数字(100-999)")
    private Integer supplierCode;
}